const eslintPluginVue = require('eslint-plugin-vue');

module.exports = [
  {
    ignores: ['static/styles/app.scss']
  },
  ...eslintPluginVue.configs['flat/recommended'],
  {
    languageOptions: {
      globals: { uni: true, wx: true, plus: true, _: true },
      ecmaVersion: 'latest',
      sourceType: 'module'
    },
    rules: {
      'vue/html-indent': ['error', 2, { attribute: 1, baseIndent: 1, closeBracket: 0, alignAttributesVertically: true, ignores: [] }],
      'vue/max-attributes-per-line': [0, { singleline: 10, multiline: { max: 100, allowFirstLine: false } }]
    }
  }
];